package com.sumainfor.wx.tenant.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.feign.MarketFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/5/10 20:55
 * @Description:
 */
@RestController
@RequestMapping("/housing")
public class HousingController {

    @Autowired
    MarketFeignClient MarketFeignClient;

    /**
     * 功能描述: 
     * 根据租客编号获取租客当前合同列表
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/5/10 20:56
     */
    @GetMapping("/getTenantPactList")
    public JsonResult getTenantPactList(@RequestParam Map<String,Object> params){
        return MarketFeignClient.getTenantPactList(params);
    }

}
